<div class="content" style="width:900px;margin:0px auto">
	<?php
	$imod = n_mod('install');
	$imod->nav();
	?>

	<ol>
	<?php
	
	if(!empty($data['data'])){
	foreach($data['data'] as $key=>$val){
	?>
	<li style="border:1px solid #999;background-color:#efefef;padding:10px;margin:4px 0px;">
		<?php
		if(!empty($data['installed'][$val['pevent']]) && 'remove'!=$data['installed'][$val['pevent']]['state']){
		?>
		<span style="float:right;color:green;">已安装</span>
		<a style="float:right;" href="<?=n_url('install','pluginRemove',array('pcode'=>$val['pevent']))?>">卸载</a>		
		<?php
		}else{
		?>
		<a style="float:right;" href="<?=n_url('install','pluginInit',array('pcode'=>$val['pevent']))?>">下载安装</a>		
		
		<?php
		}
		?>
		插件名:<?=$val['pname']?>--
		插件码:<?=$val['pevent']?>--
		版本:<?=$val['version']?>--
		时间:<?=date('Y-m-d',$val['ctime'])?><br />
		<?=$val['descript']?>
	</li>
	<?php
	}
	}
	?>	
	</ol>
</div>